package com.qijian.maindata.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qijian.maindata.domain.Examine;
import com.qijian.maindata.domain.query.ExamineQuery;
import com.qijian.maindata.domain.vo.ExamineVo;
import com.qijian.maindata.mapper.ExamineMapper;
import com.qijian.maindata.service.IExamineService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 检验项Service业务层处理
 *
 * @author qijian
 * @date 2021-11-24
 */
@Service
@RequiredArgsConstructor
public class ExamineServiceImpl extends ServiceImpl<ExamineMapper, Examine> implements IExamineService {

    private final ExamineMapper examineMapper;

    @Override
    public Page<ExamineVo> pageVo(Page<Examine> page, Wrapper<ExamineQuery> queryWrapper) {
        return examineMapper.selectPageVo(page, queryWrapper);
    }

    @Override
    public int countWithDel(boolean isAddOne) {
        return examineMapper.countWithDel(true);
    }
}
